// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'Id',
        footer: "Foots",
        cnName: '工序流转',
        name: 'processflow',
        url: "/processflow/",
        sortName: "Id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"TransferCardNumber":"","ProductionOrderNumber":"","BatchNumber":"","ProductMaterialCode":"","ProductMaterialName":"","Specifications":"","Unit":"","TransferCount":""};
    const editFormOptions = [[{"title":"流转卡编号","field":"TransferCardNumber"}],
                              [{"title":"生产工单编号","field":"ProductionOrderNumber"}],
                              [{"title":"批次号","field":"BatchNumber"}],
                              [{"title":"产品物料编码","field":"ProductMaterialCode"}],
                              [{"title":"产品物料名称","field":"ProductMaterialName"}],
                              [{"title":"规格型号","field":"Specifications"}],
                              [{"title":"单位","field":"Unit"}],
                              [{"title":"流转数量","field":"TransferCount","type":"number"}]];
    const searchFormFields = {"TransferCardNumber":"","ProductionOrderNumber":"","BatchNumber":"","ProductMaterialCode":"","ProductMaterialName":""};
    const searchFormOptions = [[{"title":"流转卡编号","field":"TransferCardNumber","type":"like"},{"title":"生产工单编号","field":"ProductionOrderNumber","type":"like"}],[{"title":"批次号","field":"BatchNumber","type":"like"},{"title":"产品物料编码","field":"ProductMaterialCode","type":"like"},{"title":"产品物料名称","field":"ProductMaterialName","type":"like"}]];
    const columns = [{field:'Id',title:'主键',type:'int',width:110,require:true,align:'left'},
                       {field:'TransferCardNumber',title:'流转卡编号',type:'string',width:110,align:'left'},
                       {field:'ProductionOrderNumber',title:'生产工单编号',type:'string',width:110,align:'left'},
                       {field:'BatchNumber',title:'批次号',type:'string',width:110,align:'left'},
                       {field:'ProductMaterialCode',title:'产品物料编码',type:'string',width:110,align:'left'},
                       {field:'ProductMaterialName',title:'产品物料名称',type:'string',width:110,align:'left'},
                       {field:'Specifications',title:'规格型号',type:'string',width:110,align:'left'},
                       {field:'Unit',title:'单位',type:'string',width:110,align:'left'},
                       {field:'TransferCount',title:'流转数量',type:'int',width:110,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}